<?php

use Biz\service\trade\Order as mOrder;

class GetBoughtGoodsForImgTagAction extends ActionPlugin
{
    const PAGE_SIZE = 20;

    public function main()
    {
        $page = $this->getRequest()->getQuery('page', 1);
        $size = self::PAGE_SIZE;
        $result = mOrder::getBoughtGoodsForImgTag($this->uid, $page, $size);
        unset($result['count']);
        $this->setSuccess($result);
    }
}